var status = -1;
var selectionLog = [];

function start() {
    selectionLog[666] = im.rand(1, 6);
    im.addNumberForQuestInfo(34414, "recorder", 1);
    action(1, 0, 0)
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        im.dispose();
        return
    }(mode == 1) ? status++ : status--;
    selectionLog[status] = selection;
    var i = -1;
    if (status <= i++) {
        im.dispose()
    } else {
        var reactor = "action" + selectionLog[666];
        eval(reactor)(mode, type, selection, i)
    }
}

function action1(d, c, b, a) {
    if (status <= a++) {
        im.sendNormalTalk("（这不像你，到底怎么了？）", 17, 0, false, true);
        im.gainItem(2436127, -1)
    } else {
        if (status === a++) {
            im.sendNormalTalk("（……怎么样才叫像我？呜呜……）", 17, 0, true, true)
        } else {
            if (status === a++) {
                im.sendNormalTalk("录音机中播放着某个早间电视剧的情景录音。", 17, 0, true, true)
            } else {
                if (status === a++) {
                    im.sendNormalTalk("……我看这个好像不是阿米的录音机，去看看其他录音机吧。", 17, 0, true, false)
                } else {
                    if (status === a++) {
                        im.dispose()
                    }
                }
            }
        }
    }
}

function action2(d, c, b, a) {
    if (status <= a++) {
        im.sendNormalTalk("（本站是废都塔-废都塔站到了。本站是废都塔--- 废都塔--。）", 17, 0, false, true);
        im.gainItem(2436127, -1)
    } else {
        if (status === a++) {
            im.sendNormalTalk("……我看这个好像不是阿米的录音机，去看看其他录音机吧。", 17, 0, true, true)
        } else {
            if (status === a++) {
                im.dispose()
            }
        }
    }
}

function action3(d, c, b, a) {
    if (status <= a++) {
        im.sendNormalTalk("（我对↗阿赫↘哥哥→的爱↗就像宇宙→一样广阔↗我愿为他↘摘星星↘摘月亮→）", 17, 0, false, true);
        im.gainItem(2436127, -1)
    } else {
        if (status === a++) {
            im.sendNormalTalk("虽然是第一次听这首歌曲，但显然没有一个音在调上。", 17, 0, true, true)
        } else {
            if (status === a++) {
                im.sendNormalTalk("……我看这个好像不是阿米的录音机，去看看其他录音机吧。", 17, 0, true, true)
            } else {
                if (status === a++) {
                    im.dispose()
                }
            }
        }
    }
}

function action4(d, c, b, a) {
    if (status <= a++) {
        im.sendNormalTalk("（嗞-嗞嗞-嗞嗞嗞--。）", 17, 0, false, true);
        im.gainItem(2436127, -1)
    } else {
        if (status === a++) {
            im.sendNormalTalk("……我看这个好像不是阿米的录音机，去看看其他录音机吧。", 17, 0, true, true)
        } else {
            if (status === a++) {
                im.dispose()
            }
        }
    }
}

function action5(d, c, b, a) {
    if (status <= a++) {
        im.sendNormalTalk("（铮-铿铿-铮--嘈杂的吉他声震得耳膜生疼。）", 17, 0, false, true);
        im.gainItem(2436127, -1)
    } else {
        if (status === a++) {
            im.sendNormalTalk("……我看这个好像不是阿米的录音机，去看看其他录音机吧。", 17, 0, true, true)
        } else {
            if (status === a++) {
                im.dispose()
            }
        }
    }
}

function action6(d, c, b, a) {
    if (status <= a++) {
        im.sendNormalTalk("#b（音色很清亮。从中传出和我在屋顶上听过的一样的歌声。)#k", 17, 0, false, true);
        im.gainItem(4036023, 1);
        im.removeAll(2436127)
    } else {
        if (status === a++) {
            im.sendNormalTalk("这个好像就是阿米的录音机，拿去给阿米吧。", 17, 0, true, true)
        } else {
            if (status === a++) {
                im.dispose()
            }
        }
    }
};